home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 019a / tde10src.zip / COMMON.H < prev    next >
C/C++ Source or Header  |  1991-06-05  |  2KB  |  56 lines

  1. /*******************  start of original comments  ********************/
  2. /*
  3.  * Written by Douglas Thomson (1989/1990)
  4.  *
  5.  * This source code is released into the public domain.
  6.  */
  7. /*********************  end of original comments   ********************/
  8.  
  9.  
  10. /*
  11.  * New editor name:  tde, the Thomson-Davis Editor.
  12.  * Author:           Frank Davis
  13.  * Date:             June 5, 1991
  14.  *
  15.  * This modification of Douglas Thomson's code is released into the
  16.  * public domain, Frank Davis.  You may distribute freely.
  17.  *
  18.  * This file contains all the external structure declarations common
  19.  *  to all the editor modules.
  20.  */
  21.  
  22. #include <stdio.h>
  23. #include <string.h>
  24. #include <ctype.h>
  25. #include <conio.h>
  26. #ifdef __TURBOC__
  27.    #include <stdlib.h>
  28. #elif __MSC__
  29.    #include <stdlib.h>
  30.    #if defined( toupper )
  31.        #undef toupper
  32.    #endif
  33. #endif
  34.  
  35. /*
  36.  * Since there is only one display, and almost all the functions either
  37.  *  refer to it or need to pass it to lower level functions, it is a
  38.  *  global variable.
  39.  * However, by making it a structure rather than leaving all the fields
  40.  *  as separate global variables, it is much less likely that there will
  41.  *  be any confusion.
  42.  */
  43. extern displays g_display;
  44.  
  45. /*
  46.  * Again, the fields here are global to the entire program, so a global
  47.  *  variable is used.
  48.  * Note that some of these fields could be statically initialized,
  49.  *  but I have chosen to initialize them at run time, since that way I
  50.  *  can refer to each field by name. This also lends itself to eventually
  51.  *  using a configuration file.
  52.  */
  53. extern status_infos g_status;
  54.  
  55. extern boyer_moore_type bm;
  56.